Skip to contentSkip to conversation

EFL apps crash on start with mesa 17.2

Bug 103519 [email protected] 1 participant 12 messages Oct 30, 2017 – Nov 14, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=103519

Bug ID: 103519
Summary: EFL apps crash on start with mesa 17.2
Product: Mesa
Version: 17.2
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/i915
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Atom N270, GPU 945GSE. Running wayland and Enlightenment git.

Since mesa 17.2 EFL apps crash on start. Reverting back to 17.1.8 fixes the problem.

I don't have mesa build with debug symbols but the problem seems to be in libEGL_mesa.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=103519

--- Comment #1 from Derek Foreman <[email protected]> --- I've been trying to debug this a little bit. It's worth noting that this crash occurs for Apostolos when running weston-simple-egl under weston as well (which removes Enlightenment and EFL from the equation)

At one point I thought we'd tracked this to create_wl_buffer() failing because queryImage() on this revision hardware doesn't support __DRI_IMAGE_ATTRIB_FOURCC, and I wrote a patch to test that theory. However recent attempts to debug this against git master seem to indicate that it's not even getting to create_wl_buffer() before segfaulting anymore.

Unfortunately, I don't have the hardware myself, so my ability to help is somewhat limited.

It's probably worth noting that the wayland compositor (weston or enlightenment) starts and renders with egl, but clients - including the trivial egl demo clients provided with weston crash with a segmentation fault before displaying a single frame.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

Derek Foreman <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|EFL apps crash on start     |wayland egl apps crash on
                   |with mesa 17.2              |start with mesa 17.2
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

Daniel Stone <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Daniel Stone <[email protected]> --- (In reply to Apostolos B. from comment #0)

Quoted 2 lines

I don't have mesa build with debug symbols but the problem seems to be in libEGL_mesa.

I also don't have any i915 hardware, but getting a backtrace with debug symbols would be a fantastic start.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

Derek Foreman <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Derek Foreman <[email protected]> --- Created attachment 135187
--> https://bugs.freedesktop.org/attachment.cgi?id=135187&action=edit
Patch to recover from failed fourcc query

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

--- Comment #4 from Derek Foreman <[email protected]> --- Ok, this patch has been successfully tested on his hardware and brings efl/weston apps back to life when applied to 17.2.3.

It will be a couple of days before we can get a re-test against git master again due to the obstinate user not wanting to deal with an unpackaged drm dependency. ;)

After testing I'll send the patch to the mailing list for further review.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

--- Comment #5 from Apostolos B. <[email protected]> ---
Dereks patch was tested on 17.2.4 and 17.3.0-rc2 and solves the problem. EFL apps and weston-simple-egl work fine.

Merge and close.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

--- Comment #6 from Emil Velikov <[email protected]> --- Send Derek's patch to the list with some ack/rb tags. Modulo any objections I'll push it in a day or two.

[1] https://patchwork.freedesktop.org/patch/187092/

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

--- Comment #7 from Apostolos B. <[email protected]> --- @Emil Velikov

It will be in for 17.3 right?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

--- Comment #8 from Derek Foreman <[email protected]> --- Oops, I've dropped the ball on this.

I need to send it to the list for further review (and potentially revision in response to that) - will do that today.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

Emil Velikov <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #9 from Emil Velikov <[email protected]> --- Right, my earlier comment should have said s/Send/I've sent/ ... Just pushed the patch to master and it will find it's way to 17.2 and 17.3

Thanks for the help gents.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 103519] wayland egl apps crash on start with mesa 17.2

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=103519

--- Comment #10 from Derek Foreman <[email protected]> --- Thanks Emil! sorry for the noise on list. :(

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel